
package Nisha.innerclass;

public class AnonymousInnerClass {
	
	public void helloWorld()
	{
		
		System.out.println("Inside method");
		AnonymousClass ac = new AnonymousClass()
	{
		@Override
		public void sayHello() {
			System.out.println("HelloWorld from Anonymous class");
			
		}
	};
	
	ac.sayHello();
	}
	
	public static void main(String args[]) {
      
		AnonymousInnerClass aic = new AnonymousInnerClass();
		
		aic.helloWorld();
       
	}

}
